package com.ruoyi.system.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 火币委托交易表 wdy_huobi_trade
 * 
 * @author ruoyi
 * @date 2020-03-08
 */
public class WdyHuobiTrade extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	public static final int STATE_TRADE = 1;
	public static final int STATE_FINISH = 2;
	public static final int STATE_CANCEL = 3;
	/** id */
		private Long id;
	/** 用户id */
		private String userId;
	/** 交易价格 */
		private BigDecimal tradePrice;
	/** 交易数量 */
		private BigDecimal tradeAmount;
	/** 交易类型(1买，2卖) */
		private Integer tradeType;
	/** 成交价格 */
		private BigDecimal dealPrice;
	/** 成交总价 */
		private BigDecimal dealTotalPrice;
	/** 交易状态(1交易中,2已成交,3已取消) */
		private Integer tradeState;
	/** 完成时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date finishTime;
	/** 删除标志（0代表存在 1代表删除） */
		private Integer delFlag;
	/** 创建者 */
		private String createBy;
	/** 创建时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date createTime;
	/** 更新者 */
		private String updateBy;
	/** 更新时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date updateTime;
	/** 备注信息 */
		private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}

	public String getUserId() 
	{
		return userId;
	}
	public void setTradePrice(BigDecimal tradePrice) 
	{
		this.tradePrice = tradePrice;
	}

	public BigDecimal getTradePrice() 
	{
		return tradePrice;
	}
	public void setTradeAmount(BigDecimal tradeAmount) 
	{
		this.tradeAmount = tradeAmount;
	}

	public BigDecimal getTradeAmount() 
	{
		return tradeAmount;
	}
	public void setTradeType(Integer tradeType) 
	{
		this.tradeType = tradeType;
	}

	public Integer getTradeType() 
	{
		return tradeType;
	}
	public void setDealPrice(BigDecimal dealPrice) 
	{
		this.dealPrice = dealPrice;
	}

	public BigDecimal getDealPrice() 
	{
		return dealPrice;
	}
	public void setDealTotalPrice(BigDecimal dealTotalPrice) 
	{
		this.dealTotalPrice = dealTotalPrice;
	}

	public BigDecimal getDealTotalPrice() 
	{
		return dealTotalPrice;
	}
	public void setTradeState(Integer tradeState) 
	{
		this.tradeState = tradeState;
	}

	public Integer getTradeState() 
	{
		return tradeState;
	}
	public void setFinishTime(Date finishTime) 
	{
		this.finishTime = finishTime;
	}

	public Date getFinishTime() 
	{
		return finishTime;
	}
	public void setDelFlag(Integer delFlag) 
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("tradePrice", getTradePrice())
            .append("tradeAmount", getTradeAmount())
            .append("tradeType", getTradeType())
            .append("dealPrice", getDealPrice())
            .append("dealTotalPrice", getDealTotalPrice())
            .append("tradeState", getTradeState())
            .append("finishTime", getFinishTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
